-- GENERATED SPELL FOR [Caravan Mule] --


function spell0_16232(pUnit, Event) --@Mark of Didier,n/a--
pUnit:FullCastSpellOnTarget(28114,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16232', 0, 1)
end

function Sorts_16232(pUnit, Event)
local choix_sorts_16232 = math.random(0, 0)
if choix_sorts_16232 == 0 then
pUnit:RegisterEvent('spell0_16232', 1, 1)
end
end

function mob16232_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16232', math.random(1500, 3000), 1)
end

function mob16232_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16232_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16232_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16232, 1, 'mob16232_Action')
RegisterUnitEvent(16232, 2, 'mob16232_Leave')
RegisterUnitEvent(16232, 3, 'mob16232_Kill')
RegisterUnitEvent(16232, 4, 'mob16232_Die')
